package yarnrpc

// node manager 向 resource manager 注册消息
case class  RegisterNodeManager(val nodeManagerId:String , val cpu:Int, val mem:Int)
// resource manager 向 node manager  发送注册完成消息
case  class RegisteredNodeManager(val resourceManagerHostName:String)
// node manager 向 resource manager 发送心跳信息
case class HeartBeat(val nodeManagerId:String)

// node manager 相关信息
class NodeManagerInfo(val nodeManagerId:String , val cpu:Int, val mem:Int, var lastHearBeatTime:Long)


// nodee manager 向 自己 发送 心跳消息
case  class SendHeartBeatToSelf()

// reouece manager 向 自己发送 心跳检查的消息
case class SendHeartBeatChecktoSelf()

